package com.edfu.core.commons.service.api;

import java.util.List;

import org.springframework.security.access.prepost.PreAuthorize;

import com.edfu.core.commons.beans.Category;

public interface ICategoryMgtService {
	
	@PreAuthorize("isAnonymous()")
	public Category createCategory(Category category);
	
	@PreAuthorize("isAnonymous()")
	public Category updateCategory(Category category);
	
	@PreAuthorize("isAnonymous()")
	public List<Category> getCategories();
	
	@PreAuthorize("isAnonymous()")
	public Category getCategory(long categoryId);
	
	@PreAuthorize("isAnonymous()")
	public Category getCategory(String categoryName);
	
	@PreAuthorize("isAnonymous()")
	public List<Category> addCategories(String parentCategoryName, List<Category> categories);
	
	@PreAuthorize("isAnonymous()")
	public void removeCategory(String categoryName);
	
	@PreAuthorize("isAnonymous()")
	public void removeCategory(long testCategoryId);
	

}
